<div class="fabricantes view well">
<h2><?php  echo __('Fabricante');?></h2>
	<table class="table table-bordered table-striped">
	<tbody>
	<tr>
		<td><h5><?php echo __('Id'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['id']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Fabricante'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['fabricante']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Userinc'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['userinc']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Datainc'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['datainc']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Useralt'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['useralt']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Dataalt'); ?></h5></td>
		<td>
			<?php echo h($fabricante['Fabricante']['dataalt']); ?>
			&nbsp;
		</td>
	</tr>
	</tbody>
	</table>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Fabricante'), array('action' => 'edit', $fabricante['Fabricante']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Fabricante'), array('action' => 'delete', $fabricante['Fabricante']['id']), null, __('Are you sure you want to delete # %s?', $fabricante['Fabricante']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Fabricantes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Fabricante'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Bem Patrimonials'), array('controller' => 'bem_patrimonials', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Bem Patrimonial'), array('controller' => 'bem_patrimonials', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Bem Patrimonials');?></h3>
	<?php if (!empty($fabricante['BemPatrimonial'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Numero Bem'); ?></th>
		<th><?php echo __('Descr Bem'); ?></th>
		<th><?php echo __('Caracteristica Bem'); ?></th>
		<th><?php echo __('Valor Nominal'); ?></th>
		<th><?php echo __('Valor Aquisicao'); ?></th>
		<th><?php echo __('DataAquisicao'); ?></th>
		<th><?php echo __('ValorCorrecao'); ?></th>
		<th><?php echo __('DataCorrecao'); ?></th>
		<th><?php echo __('DataProxCorrecao'); ?></th>
		<th><?php echo __('ValorAvaliacao'); ?></th>
		<th><?php echo __('DataAvaliacao'); ?></th>
		<th><?php echo __('ValorResidual'); ?></th>
		<th><?php echo __('ValorDepreciavel'); ?></th>
		<th><?php echo __('ValorDepreciacaoMes'); ?></th>
		<th><?php echo __('ValorDepreciacaoAcumulada'); ?></th>
		<th><?php echo __('TipoBem'); ?></th>
		<th><?php echo __('Estadoconservacao Id'); ?></th>
		<th><?php echo __('SituacaoBem'); ?></th>
		<th><?php echo __('DataTombamento'); ?></th>
		<th><?php echo __('DataBaixa'); ?></th>
		<th><?php echo __('DataContabilBaixa'); ?></th>
		<th><?php echo __('Moeda Id Aqusicao'); ?></th>
		<th><?php echo __('EmInventario'); ?></th>
		<th><?php echo __('Produto Id'); ?></th>
		<th><?php echo __('Contacontabil Id'); ?></th>
		<th><?php echo __('Fonecedor Id'); ?></th>
		<th><?php echo __('Fabricante Id'); ?></th>
		<th><?php echo __('Userinc'); ?></th>
		<th><?php echo __('Datainc'); ?></th>
		<th><?php echo __('Useralt'); ?></th>
		<th><?php echo __('Dataalt'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($fabricante['BemPatrimonial'] as $bemPatrimonial): ?>
		<tr>
			<td><?php echo $bemPatrimonial['id'];?></td>
			<td><?php echo $bemPatrimonial['numero_bem'];?></td>
			<td><?php echo $bemPatrimonial['descr_bem'];?></td>
			<td><?php echo $bemPatrimonial['caracteristica_bem'];?></td>
			<td><?php echo $bemPatrimonial['valor_nominal'];?></td>
			<td><?php echo $bemPatrimonial['valor_aquisicao'];?></td>
			<td><?php echo $bemPatrimonial['dataAquisicao'];?></td>
			<td><?php echo $bemPatrimonial['valorCorrecao'];?></td>
			<td><?php echo $bemPatrimonial['dataCorrecao'];?></td>
			<td><?php echo $bemPatrimonial['dataProxCorrecao'];?></td>
			<td><?php echo $bemPatrimonial['valorAvaliacao'];?></td>
			<td><?php echo $bemPatrimonial['dataAvaliacao'];?></td>
			<td><?php echo $bemPatrimonial['valorResidual'];?></td>
			<td><?php echo $bemPatrimonial['valorDepreciavel'];?></td>
			<td><?php echo $bemPatrimonial['valorDepreciacaoMes'];?></td>
			<td><?php echo $bemPatrimonial['valorDepreciacaoAcumulada'];?></td>
			<td><?php echo $bemPatrimonial['tipoBem'];?></td>
			<td><?php echo $bemPatrimonial['estadoconservacao_id'];?></td>
			<td><?php echo $bemPatrimonial['situacaoBem'];?></td>
			<td><?php echo $bemPatrimonial['dataTombamento'];?></td>
			<td><?php echo $bemPatrimonial['dataBaixa'];?></td>
			<td><?php echo $bemPatrimonial['dataContabilBaixa'];?></td>
			<td><?php echo $bemPatrimonial['moeda_id_aqusicao'];?></td>
			<td><?php echo $bemPatrimonial['emInventario'];?></td>
			<td><?php echo $bemPatrimonial['produto_id'];?></td>
			<td><?php echo $bemPatrimonial['contacontabil_id'];?></td>
			<td><?php echo $bemPatrimonial['fonecedor_id'];?></td>
			<td><?php echo $bemPatrimonial['fabricante_id'];?></td>
			<td><?php echo $bemPatrimonial['userinc'];?></td>
			<td><?php echo $bemPatrimonial['datainc'];?></td>
			<td><?php echo $bemPatrimonial['useralt'];?></td>
			<td><?php echo $bemPatrimonial['dataalt'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'bem_patrimonials', 'action' => 'view', $bemPatrimonial['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'bem_patrimonials', 'action' => 'edit', $bemPatrimonial['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'bem_patrimonials', 'action' => 'delete', $bemPatrimonial['id']), null, __('Are you sure you want to delete # %s?', $bemPatrimonial['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Bem Patrimonial'), array('controller' => 'bem_patrimonials', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
